package com.tyk.bookstore.back.order.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Schema(name = "OrderDetail", description = "订单详情")
@Data
public class OrderDetailVo implements Serializable {
    @Schema(description = "ID")
    private Long id;
    @Schema(description = "订单ID")
    private Long orderId;
    @Schema(description = "书籍ID")
    private Long bookId;
    @Schema(description = "书名")
    private String name;
    @Schema(description = "价格")
    private BigDecimal price;
    @Schema(description = "封面路径")
    private String cover;
    @Schema(description = "购买数量")
    private Integer num;
}
